package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.Orderdetail;

/**
 * orderdetailMapper接口
 * 
 * @author ruoyi
 * @date 2025-06-08
 */
public interface OrderdetailMapper 
{
    /**
     * 查询orderdetail
     * 
     * @param detailid orderdetail主键
     * @return orderdetail
     */
    public Orderdetail selectOrderdetailByDetailid(Long detailid);

    /**
     * 查询orderdetail列表
     * 
     * @param orderdetail orderdetail
     * @return orderdetail集合
     */
    public List<Orderdetail> selectOrderdetailList(Orderdetail orderdetail);

    /**
     * 新增orderdetail
     * 
     * @param orderdetail orderdetail
     * @return 结果
     */
    public int insertOrderdetail(Orderdetail orderdetail);
    public int insertOrderdetails(List<Orderdetail> orderdetailList);
    /**
     * 修改orderdetail
     * 
     * @param orderdetail orderdetail
     * @return 结果
     */
    public int updateOrderdetail(Orderdetail orderdetail);

    /**
     * 删除orderdetail
     * 
     * @param detailid orderdetail主键
     * @return 结果
     */
    public int deleteOrderdetailByDetailid(Long detailid);

    /**
     * 批量删除orderdetail
     * 
     * @param detailids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderdetailByDetailids(Long[] detailids);
}
